package com.hkd.cya.适配器模式;

import javax.swing.plaf.synth.SynthOptionPaneUI;

public class Client {
    public static void main(String[] args) {
        System.out.println("****1读取SD卡中的数据****");
        Computer computer=new Computer();
        String msg1=computer.readSD(new SDCardImpl());
        System.out.println(msg1);
        System.out.println("============");
        System.out.println("*****2.用电脑读取TF卡中的数据");
        String msg2=computer.readSD(new SDAdapterTF() );
        System.out.println(msg2);
    }
}
